{extend name='admin@main'}
{block name="content"}
<div class="think-box-shadow">
    {include file='player/index_search'}
    <div class="layui_table_width_scroll">
        <table class="layui-table margin-top-10" lay-skin="line">
        {notempty name='list'}
        <thead>
        <tr>
            <th class='text-left nowrap'>玩家ID</th>
            <th class='text-left nowrap'>来源渠道</th>
            <th class='text-left nowrap'>昵称</th>
            <th class='text-left nowrap'>VIP等级</th>
            <th class='text-left nowrap'>总充值</th>
            <th class='text-left nowrap'>炮倍</th>
            <th class='text-left nowrap'>金币</th>
            <th class='text-left nowrap'>钻石</th>
            <th class='text-left nowrap'>鱼卷</th>
            <th class='text-left nowrap'>注册时间</th>
            <th class='text-left nowrap'>最后登录时间</th>
            <th class='text-left nowrap'>最后登录版本号</th>
            <th class='text-left nowrap'></th>
        </tr>
        </thead>
        {/notempty}
        <tbody>
        {foreach $list as $key=>$vo}
        <tr>
            <td class='text-left nowrap'>
                <span class="color-red">{$vo.UserID|default='--'}</span>
            </td>
            <td class='text-left nowrap'>
                {eq name='$vo.channel_name' value='0' }
                  官方-0-渠道
                {else}
                  {$vo.channel_name}
                {/eq}
            </td>
            <td class='text-left nowrap'>{$vo.NickName}</td>
            <td class='text-left nowrap'>{$vo.VipLevel}</td>
            <td class='text-left nowrap'>{$vo.TotalRecharge}</td>
            <td class='text-left nowrap'>
                <span class="color-red">{$vo.Cannon}</span>
            </td>
            <td class='text-left nowrap'>{$vo.Score |default='--'}</td>
            <td class='text-left nowrap'>{$vo.Diamond}</td>
            <td class='text-left nowrap'>{$vo.Lottery}</td>
            <td class='text-left nowrap'>{$vo.RegisterDate}</td>
            <td class='text-left nowrap'>{$vo.LastLoginDate}</td>
            <td class='text-left nowrap'>{$vo.ClientVersion}</td>
            <td class='text-left nowrap'>
                <a class="layui-btn layui-btn-normal layui-btn-sm" data-title="" data-modal='{:url("backpack")}?id={$vo.UserID}'>背包</a>
                <a data-dbclick class="layui-btn layui-btn-sm" data-title="金币明细" data-modal-html='{:url("score_detail")}?id={$vo.UserID}' >金币明细</a>
                <a class="layui-btn layui-btn-sm layui-btn-warm" data-modal='{:url("user_attribute")}?id={$vo.UserID}' >玩家属性</a>
                <a class="layui-btn layui-btn-sm layui-btn-danger" data-modal='{:url("Time_limit_prop")}?id={$vo.UserID}' >限时道具</a>
            </td>
        </tr>
        {/foreach}
        </tbody>
    </table>
    </div>
    {$pages | Raw}
    {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
</div>
{/block}
